﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>慈铭体检-癌症筛选</title>
<meta name="description" content="" />
<link href="css/fashionfoucs.css" rel="stylesheet" />
<script src="js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="js/jquery.plugin.min.js" type="text/javascript"></script>
</head>
<body class="aizb">
<div id="topheader">
	<div class="logocon"><span class="logo">慈铭体检</span>&nbsp;&nbsp;|&nbsp;&nbsp;癌症筛选</div>
	<div class="navmenu"><a href="index.html">网站首页</a>|<a href="svgMap/map.html">疾病分布</a>|<a href="yuce.html">慢病预测</a>|<a href="aizdlogin.html">癌症筛选</a></div>
</div>

<div class="aizdcon">  
 	<div class="tables">
    <form action="" method="get">
    <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#38c7a5">
  <tr>
    <td colspan="4" align="center" height="50"><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td ><strong>姓名</strong>：${name}</td>
    <td><strong>体验号</strong>：${cancer.uid}</td>
    <td><strong>城市</strong>：${cancer.city}</td>
  </tr>
</table>
</td>
    </tr>
  <tr>
    <td  width="220">属性</td>
    <td>体检结果</td>
    <td>正常范围最小值</td>
    <td>正常范围最大值</td>
    </tr>
  <tr>
    <td>年龄</td>
    <td>${cancer.age}</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>身高</td>
    <td>${cancer.tall}</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>体重</td>
    <td>${cancer.weight}</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>体重指数</td>
    <td><c:if test="${cancer.BMI<18.5}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.BMI>23.99}"><span class="red"/></c:if>
    	${cancer.BMI}</td>
    <td>18.5</td>
    <td>23.99</td>
  </tr>
  <tr>
    <td>体检血压收缩压</td>
    <td>
    	<c:if test="${cancer.shousuoya<90}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.shousuoya>140}"><span class="red"/></c:if>
    	${cancer.shousuoya}
    </td>
    <td>90</td>
    <td>140</td>
  </tr>
  <tr>
    <td>体检血压舒张压</td>
    <td>
    	<c:if test="${cancer.shuzhangya<60}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.shuzhangya>90}"><span class="red"/></c:if>
    	${cancer.shuzhangya}
    </td>
    <td>60</td>
    <td>90</td>
  </tr>
  <tr>
    <td>白细胞计数（WBC）</td>
    <td>
    	<c:if test="${cancer.WBC<4}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.WBC>10}"><span class="red"/></c:if>
    	${cancer.WBC}
    </td>
    <td>4</td>
    <td>10</td>
  </tr>
  <tr>
    <td>红细胞计数（RBC）</td>
    <td>
    	<c:if test="${cancer.sex==0}">
    		<c:if test="${cancer.RBC<4}"><span class="yellow"/></c:if>
    		<c:if test="${cancer.RBC>5.79}"><span class="red"/></c:if>
    	</c:if>
    	<c:if test="${cancer.sex==1}">
    		<c:if test="${cancer.RBC<3.5}"><span class="yellow"/></c:if>
    		<c:if test="${cancer.RBC>5.2}"><span class="red"/></c:if>
    	</c:if>
    	${cancer.RBC}
    </td>
    <td>${cancer.sex==0 ? 4: 3.5}</td>
    <td>${cancer.sex==0 ? 5.79: 5.2}</td>
  </tr>
  <tr>
    <td>血红蛋白HGB</td>
    <td>
    	<c:if test="${cancer.sex==0}">
    		<c:if test="${cancer.HGB<131}"><span class="yellow"/></c:if>
    		<c:if test="${cancer.HGB>174}"><span class="red"/></c:if>
    	</c:if>
    	<c:if test="${cancer.sex==1}">
    		<c:if test="${cancer.HGB<113}"><span class="yellow"/></c:if>
    		<c:if test="${cancer.HGB>151}"><span class="red"/></c:if>
    	</c:if>
    	${cancer.HGB}
    </td>
    <td>${cancer.sex==0 ? 131: 113}</td>
    <td>${cancer.sex==0 ? 174: 151}</td>
  </tr>
  <tr>
    <td>红细胞压积HCT</td>
    <td>
    	<c:if test="${cancer.sex==0}">
    		<c:if test="${cancer.HCT<40}"><span class="yellow"/></c:if>
    		<c:if test="${cancer.HCT>54}"><span class="red"/></c:if>
    	</c:if>
    	<c:if test="${cancer.sex==1}">
    		<c:if test="${cancer.HCT<35}"><span class="yellow"/></c:if>
    		<c:if test="${cancer.HCT>48}"><span class="red"/></c:if>
    	</c:if>
    	${cancer.HCT}
    </td>
    <td>${cancer.sex==0 ? 40: 35}</td>
    <td>${cancer.sex==0 ? 54: 48}</td>
  </tr>
  <tr>
    <td>平均红细胞体积（MCV）</td>
    <td>
    	<c:if test="${cancer.MCV<80}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.MCV>97}"><span class="red"/></c:if>
    	${cancer.MCV}</td>
    <td>80</td>
    <td>97</td>
  </tr>
  <tr>
    <td>平均红细胞血红蛋白含量（MCH）</td>
    <td>
    	<c:if test="${cancer.MCH<26.5}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.MCH>33.5}"><span class="red"/></c:if>
    	${cancer.MCH}</td>
    <td>26.5</td>
    <td>33.5</td>
  </tr>
  <tr>
    <td>平均红细胞血红蛋白浓度（MCHC）</td>
    <td>
    	<c:if test="${cancer.MCHC<315}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.MCHC>360}"><span class="red"/></c:if>
    	${cancer.MCHC}</td>
    <td>315</td>
    <td>360</td>
  </tr>
  <tr>
    <td>红细胞体积分布宽度变异系数（RDWCV）</td>
    <td>
    	<c:if test="${cancer.RDWCV<10}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.RDWCV>15}"><span class="red"/></c:if>
    	${cancer.RDWCV}</td>
    <td>10</td>
    <td>15</td>
  </tr>
  <tr>
    <td>红细胞体积分布宽度标准差（RDWSD）</td>
    <td>
   		<c:if test="${cancer.RDWSD<40}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.RDWSD>53}"><span class="red"/></c:if>
    	${cancer.RDWSD}</td>
    <td>40</td>
    <td>53</td>
  </tr>
  <tr>
    <td>血小板PLT</td>
    <td>
    	<c:if test="${cancer.PLT<100}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.PLT>350}"><span class="red"/></c:if>
    	${cancer.PLT}</td>
    <td>100</td>
    <td>350</td>
  </tr>
  <tr>
    <td>平均血小板体积（MPV）</td>
    <td>
    	<c:if test="${cancer.MPV<6.5}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.MPV>12.5}"><span class="red"/></c:if>
    	${cancer.MPV}</td>
    <td>6.5</td>
    <td>12.5</td>
  </tr>
  <tr>
    <td>血小板容积分布宽度（PDW）</td>
    <td>
    	<c:if test="${cancer.PDW<10}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.PDW>17}"><span class="red"/></c:if>
    	${cancer.PDW}</td>
    <td>10</td>
    <td>17</td>
  </tr>
  <tr>
    <td>中间细胞百分比（MON）</td>
    <td>
    	<c:if test="${cancer.MON<2}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.MON>12}"><span class="red"/></c:if>
    	${cancer.MON}</td>
    <td>2</td>
    <td>12</td>
  </tr>
  <tr>
    <td>中间细胞绝对值（MON#）</td>
    <td>
    	<c:if test="${cancer.MON_<0.14}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.MON_>0.8}"><span class="red"/></c:if>
    	${cancer.MON_}</td>
    <td>0.14</td>
    <td>0.8</td>
  </tr>
  <tr>
    <td>中性粒细胞绝对值（GRA#）</td>
    <td>
    	<c:if test="${cancer.GRA_<1.2}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.GRA_>6.79}"><span class="red"/></c:if>
    	${cancer.GRA_}</td>
    <td>1.2</td>
    <td>6.79</td>
  </tr>
  <tr>
    <td>淋巴细胞绝对值（LYM#）</td>
    <td>
    	<c:if test="${cancer.LYM_<1.2}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.LYM_>3.2}"><span class="red"/></c:if>
    	${cancer.LYM_}</td>
    <td>1.2</td>
    <td>3.2</td>
  </tr>
  <tr>
    <td>中性粒细胞百分比（GRA）</td>
    <td>
    	<c:if test="${cancer.GRA<43}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.GRA>72}"><span class="red"/></c:if>
    	${cancer.GRA}</td>
    <td>43</td>
    <td>72</td>
  </tr>
  <tr>
    <td>淋巴细胞百分比（%LYM）</td>
    <td>
    	<c:if test="${cancer._LYM<17.5}"><span class="yellow"/></c:if>
    	<c:if test="${cancer._LYM>48}"><span class="red"/></c:if>
    	${cancer._LYM}</td>
    <td>17.5</td>
    <td>48</td>
  </tr>
  <tr>
    <td>丙氨酸氨基转移酶（ALT）</td>
    <td>
    	<c:if test="${cancer.ALT<0}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.ALT>40}"><span class="red"/></c:if>
    	${cancer.ALT}</td>
    <td>0</td>
    <td>40</td>
  </tr>
  <tr>
    <td>尿素（Urea）</td>
    <td>
    	<c:if test="${cancer.UREA<1.7}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.UREA>8.3}"><span class="red"/></c:if>
    	${cancer.UREA}</td>
    <td>1.7</td>
    <td>8.3</td>
  </tr>
  <tr>
    <td>肌酐（Cr）</td>
    <td>
    	<c:if test="${cancer.sex==0}">
    		<c:if test="${cancer.CR<20}"><span class="yellow"/></c:if>
    		<c:if test="${cancer.CR>120}"><span class="red"/></c:if>
    	</c:if>
    	<c:if test="${cancer.sex==1}">
    		<c:if test="${cancer.CR<20}"><span class="yellow"/></c:if>
    		<c:if test="${cancer.CR>100}"><span class="red"/></c:if>
    	</c:if>
    	${cancer.CR}</td>
    <td>20</td>
    <td>${cancer.sex==0 ? 120: 100}</td>
  </tr>
  <tr>
    <td>尿酸（UA）</td>
    <td>
    	<c:if test="${cancer.sex==0}">
    		<c:if test="${cancer.UA<90}"><span class="yellow"/></c:if>
    		<c:if test="${cancer.UA>420}"><span class="red"/></c:if>
    	</c:if>
    	<c:if test="${cancer.sex==1}">
    		<c:if test="${cancer.UA<90}"><span class="yellow"/></c:if>
    		<c:if test="${cancer.UA>360}"><span class="red"/></c:if>
    	</c:if>
    	${cancer.UA}</td>
    <td>90</td>
    <td>${cancer.sex==0 ? 420: 360}</td>
  </tr>
  <tr>
    <td>总胆固醇（TC）</td>
    <td>
    	<c:if test="${cancer.TC<2.33}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.TC>5.18}"><span class="red"/></c:if>
    	${cancer.TC}</td>
    <td>2.33</td>
    <td>5.18</td>
  </tr>
  <tr>
    <td>甘油三酯（TG）</td>
    <td>
    	<c:if test="${cancer.TG<0.2}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.TG>1.72}"><span class="red"/></c:if>
    	${cancer.TG}</td>
    <td>0.2</td>
    <td>1.72</td>
  </tr>
  <tr>
    <td>空腹血糖（FPG）</td>
    <td>
    	<c:if test="${cancer.FPG<3.6}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.FPG>6.11}"><span class="red"/></c:if>
    	${cancer.FPG}</td>
    <td>3.6</td>
    <td>6.11</td>
  </tr>
  <tr>
    <td>比重（SG）</td>
    <td>
    	<c:if test="${cancer.SG<1.004}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.SG>1.03}"><span class="red"/></c:if>
    	${cancer.SG}</td>
    <td>1.004</td>
    <td>1.03</td>
  </tr>
  <tr>
    <td>pH值pH</td>
    <td>
    	<c:if test="${cancer.pH<4.5}"><span class="yellow"/></c:if>
    	<c:if test="${cancer.pH>8}"><span class="red"/></c:if>
    	${cancer.pH}</td>
    <td>4.5</td>
    <td>8</td>
  </tr>
    </table>
    <p>“黄色标识该项偏小，红色表示该项偏大”。</p>
</form>
</div>
<div class="cs_texts">
	<div class="cs_txtcon">
    	<div class="zhzhutu">
        	<div id="main" style="height:100%;width:600px;"></div>    
    		<div id="show_detail"></div>
    	</div>
        <div class="zh_txt"><p>根据您的体检数据，我们判断您患有癌症的概率是 <span class="yellow">${p}</span>，
        	<c:out value="${ p > 0.5 ? '大于0.5，所以建议您到医院进行进一步的检查和确诊。' : '小于0.5，您患癌风险较低。'}" /></p>
        </div>
    </div>
</div>
<div style="clear:both"></div>

</div>	
<script type="text/javascript" src="js/fashionfoucs.js"></script>

<!--[if IE 6]>
<script src="js/DDPngMin.js"></script>
<script>DD_belatedPNG.fix('.ad_img img,#banner_ctr ul');</script>
<![endif]--> 

    <script src="js/echarts-all.js" type="text/javascript"></script>
    <script type="text/javascript">
        // 基于准备好的dom，初始化echarts图表
	var myChart = echarts.init(document.getElementById('main')); 
	var option = {
    title : {
        text: '癌症诊断',
        subtext: '最大值/最小值'
    },
    tooltip : {
        trigger: 'axis'
    },
    legend: {
        data:['体检项目']
    },
    toolbox: {
        show : false,
        feature : {
            mark : {show: true},
            dataView : {show: true, readOnly: false},
            magicType : {show: true, type: ['line', 'bar']},
            restore : {show: true},
            saveAsImage : {show: true}
        }
    },
    calculable : true,
    xAxis : [
        {
            type : 'category',
            data : ['HCT','MCV','MCHC','RDWSD','MPV','MON','%LYM','FPG','SG']
        }
    ],
    yAxis : [
        {
            type : 'value',
            axisLine: {
                lineStyle: {
                    color: '#dc143c'
                }
            },
			axisLabel : {
				formatter: function(value){
					var max = 400;
					var min = 200;
					if(value==max){
						return "正常上限";
					}else if(value==min){
						return "正常下限";
					}else{
						return '';
					}
				}
			},
			
        }
    ],
    series : [
              {
                  name:'相对高度',
                  type:'bar',
                  data:[
                        {value:${hct}  ,itemStyle:{normal:{color:'#dc143c'}}},
                        {value:${mcv}  ,itemStyle:{normal:{color:'#dc143c'}}},
                        {value:${mchc}  ,itemStyle:{normal:{color:'#dc143c'}}},
                        {value:${rdwsd}  ,itemStyle:{normal:{color:'#dc143c'}}},
                        {value:${mpv}  ,itemStyle:{normal:{color:'#dc143c'}}},
                        {value:${mon}  ,itemStyle:{normal:{color:'#dc143c'}}},
                        {value:${_lym}  ,itemStyle:{normal:{color:'#dc143c'}}},
                        {value:${fpg}  ,itemStyle:{normal:{color:'#dc143c'}}},
                        {value:${sg}  ,itemStyle:{normal:{color:'#dc143c'}}},
                       ],
                  markLine : {
                      data : [
						[
     					    {name: '标线1起点', xAxis: -1, yAxis: 400, itemStyle:{normal:{color:'#006149'}}},
    					    {name: '标线1终点', xAxis: 10, yAxis: 400}
    					],
    					[
    					    {name: '标线2起点', xAxis: -1, yAxis: 200, itemStyle:{normal:{color:'#006149'}}},
    					    {name: '标线2终点', xAxis: 10, yAxis: 200}
    					]
                      ]
                  }				
                 
      			
      			
              }
          ]
};
                      
        // 为echarts对象加载数据 
    myChart.setOption(option); 
 


    </script>
</body>
</html>
